import request from '@/utils/request'

// 查询排班信息列表
export function listSchedulelist(query) {
  return request({
    url: '/schedule/schedulelist/list',
    method: 'get',
    params: query
  })
}


// 查询排班信息详细
export function getSchedulelist(id) {
  return request({
    url: '/schedule/schedulelist/' + id,
    method: 'get'
  })
}

// 新增排班信息
export function addSchedulelist(data) {
  return request({
    url: '/schedule/schedulelist',
    method: 'post',
    data: data
  })
}

// 修改排班信息
export function updateSchedulelist(data) {
  return request({
    url: '/schedule/schedulelist',
    method: 'put',
    data: data
  })
}

// 删除排班信息
export function delSchedulelist(id) {
  return request({
    url: '/schedule/schedulelist/' + id,
    method: 'delete'
  })
}

// 查询医生信息列表
export function listDocterlist(query) {
  return request({
    url: '/docters/docterlist/list',
    method: 'get',
    params: query
  })
}

//查询科室信息列表
export function listDepartment(){
  return request({
    url: '/docters/docterlist/departlist',
    method: 'get'
  })
}

//根据科室查询医生
export function docterlistbydept(query) {
  return request({
    url: '/docters/docterlist/listbydept',
    method: 'get',
    params: query
  })
}